From: Paul Eggert Date: Wed, 6 Jul 2011 21:56:44 +0000 (-0700) Subject: Merge: Remove unportable assumption about struct layout (Bug#8884). X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~844^2~1123^2~4 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=437dd18bf116330a43585f85aac12e6a8171b8a2;p=emacs.git Merge: Remove unportable assumption about struct layout (Bug#8884). * buffer.c (clone_per_buffer_values): Don't assume that sizeof (struct buffer) is a multiple of sizeof (Lisp_Object). This isn't true in general, and it's particularly not true if Emacs is configured with --with-wide-int. * buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER): New macros, used in the buffer.c change. --- 437dd18bf116330a43585f85aac12e6a8171b8a2